package com.daata.decorator;

import com.daatak.finance.calculators.CalculatorObjectI;
import com.daatak.mvc.common.CurrencyFormatter;

public class CalculatorObjectDecorator {
	
	CalculatorObjectI calculatorObject;
	public CalculatorObjectDecorator(CalculatorObjectI calculatorObject){
		this.calculatorObject = calculatorObject;
		
	}
	
	public Integer getTerm(){
		return calculatorObject.getTerm();
	}
	public Integer getAmortization()
	{
		return calculatorObject.getAmortization();
	}

	public String getRate(){
		return CurrencyFormatter.formatPercentage(calculatorObject.getRate());
	}
	public String getTotalInterest(){
		return CurrencyFormatter.formatCurrency(calculatorObject.getTotalInterest());
	}
	public String getMonthlyEmi(){
		return CurrencyFormatter.formatCurrency(calculatorObject.getMonthlyEmi());
	}
	public String getFinancedAmount(){
		return CurrencyFormatter.formatCurrency(calculatorObject.getFinancedAmount());
	}
	public String getCalculatedAmount(){
		return CurrencyFormatter.formatCurrency(calculatorObject.getFinancedAmount());
	}
	public String getStatus(){
		return calculatorObject.getStatus();
	}
	public String getDescription(){
		return calculatorObject.getDescription();
	}


}
